<template>
  <div id="scroll-board">
    <el-table
      :data="tableData"
      height="100%"
      border
      style="width: 100%"
      :default-sort="{prop: 'day', order: 'descending'}"
    >
      <el-table-column
        prop="day"
        sortable
        label="日期"
      />
      <el-table-column
        prop="name"
        label="平台"
      />
      <el-table-column
        prop="money"
        label="总金额"
      />
    </el-table>
  </div>
</template>

<script>
export default {
  name: 'ScrollBoard',
  props: {
    tableData: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="scss">
#scroll-board {
  width: 99%;
  box-sizing: border-box;
  height: 100%;
  .el-table{
    background-color: rgba(6, 30, 93, 0.1);
    color: white;
    .el-table__header{
      background-color: rgba(6, 30, 93, 0.1);
     *{
       background-color: rgba(6, 30, 93, 0.1);
     }
    }
    .el-table__body{
      background-color: rgba(6, 30, 93, 0.1);
     *{
       background-color: rgba(6, 30, 93, 0.1);
     }
    }
  }
}
</style>
